#define _CRT_SECURE_NO_WARNINGS 1



#include <stdio.h>

int main()
{
	int n = 0;
	int i = 0;
	int j = 0;
	int k = 0;

	scanf("%d", &n);
	int a[100][100] = { 0 };
	a[0][0] = 1;
	for (i = 1; i < n; i++)
	{
		a[i][0] = a[i - 1][0] + i;
	}
	for (i = 0; i < n; i++)
	{
		for (j = 1; j < n-i; j++)
		{
			a[i][j] = a[i][j - 1] + j + i + 1;
		}
	}
	for (j = 0; j < n; j++)
	{
		for (k = 0; k < n-j; k++)
		{
			printf("%-3d ", a[j][k]);
		}
		printf("\n");
	}

	return 0;
}